package com.cskaoyan.day31.work1._03_builder;

import com.cskaoyan.day31.work1._03_builder.bean.CustomUser;
import com.cskaoyan.day31.work1._03_builder.bean.CustomUserBuilder;

public class _03_CustomBuilder {
    public static void main(String[] args) {
        CustomUserBuilder builder = new CustomUserBuilder();
        builder.username("李四")
                .gender("男")
                .age(18)
                .password("143545");
        CustomUser user = builder.build();
        System.out.println(user);


        CustomUserBuilder builder2 = new CustomUserBuilder();
        CustomUser customUser = builder2.username("王五")
                .password("2535425")
                .age(60)
                .gender("男")
                .build();
        System.out.println(customUser);
    }
}
